/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package phamquochuong_cn6;

import com.srcptit.trainning.huongpq.btvn1.Ham;
import java.util.Scanner;

/**
 *
 * @author Admin_Pro
 */
public class Bai2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long a,b;
        System.out.println("nhap so thu nhat: ");
        a = sc.nextLong();
        System.out.println("nhap so thu hai: ");
        b = sc.nextLong();
        long c;
        c = Ham.ucln(a,b);
        System.out.println("uoc chung lon nhat cua " + a +" va " + b +" la: " + c);
    }
}
